package cpu;

import java.io.IOException;

public class TestThisEscape {
    private int num = 8;

    public TestThisEscape() {
        new Thread(() -> {
            /*
             * 这里有可能输出中间状态0
             * this溢出了，表示this还没初始化完成，就被先用了
             */
            System.out.println(this.num);
        }).start();
    }

    public static void main(String[] args) throws IOException {
        new TestThisEscape();
        System.in.read();
    }
}
